Skip to content

Conversation

marko-bekhta
Copy link
Member

https://hibernate.atlassian.net/browse/HV-2135


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on licensing, please check here.


@gsmet
Copy link
Member

gsmet commented Sep 1, 2025

You getting it even faster?

@marko-bekhta
Copy link
Member Author

You getting it even faster?

🙈 🫣 I was trying to figure out why the predefined scope case can still be slower then the regular case... and while at it found these few things. But still unsure what's causing the occasional slowdown 😕

@marko-bekhta
Copy link
Member Author

Current patch:

Benchmark                                                                                                                Mode  Cnt      Score     Error   Units
o.h.v.p.cascaded.CascadedWithLotsOfItemsAndCyclesValidation.testCascadedValidationWithLotsOfItems                       thrpt    15  22475.892 ± 303.829   ops/s
o.h.v.p.cascaded.PredefinedScopeCascadedWithLotsOfItemsAndCyclesValidation.testCascadedValidationWithLotsOfItems        thrpt    15  24050.667 ± 524.209   ops/s
o.h.v.p.simple.SimpleSingleElementValidation.invalidObjectValidation                                                    thrpt    15  12376.592 ± 102.328  ops/ms
o.h.v.p.simple.SimpleSingleElementValidation.validObjectValidation                                                      thrpt    15  53082.121 ± 315.109  ops/ms

9.1.0.Alpha1

Benchmark                                                                                                                Mode  Cnt      Score    Error   Units
o.h.v.p.cascaded.CascadedWithLotsOfItemsAndCyclesValidation.testCascadedValidationWithLotsOfItems                       thrpt   20  20107.524 ± 33.186   ops/s
o.h.v.p.cascaded.PredefinedScopeCascadedWithLotsOfItemsAndCyclesValidation.testCascadedValidationWithLotsOfItems        thrpt   20  17983.391 ± 28.931   ops/s
o.h.v.p.simple.SimpleSingleElementValidation.invalidObjectValidation                                                    thrpt   20  10799.710 ± 24.398  ops/ms
o.h.v.p.simple.SimpleSingleElementValidation.validObjectValidation                                                      thrpt   20  34603.538 ± 86.836  ops/ms

9.1.0.Alpha1 (cascading no cycle -- no noticable difference)

o.h.v.p.cascaded.PredefinedScopeCascadedWithLotsOfItemsValidation.testPredefinedScopeCascadedValidationWithLotsOfItems  thrpt   20  24261.606 ± 50.214   ops/s
o.h.v.p.cascaded.CascadedWithLotsOfItemsValidation.testCascadedValidationWithLotsOfItems                                thrpt   20  24203.927 ± 40.968   ops/s

9.0

Benchmark                                                                                                                Mode  Cnt      Score     Error   Units
o.h.v.p.cascaded.CascadedWithLotsOfItemsAndCyclesValidation.testCascadedValidationWithLotsOfItems                       thrpt    15   7475.159 ± 120.414   ops/s
o.h.v.p.cascaded.PredefinedScopeCascadedWithLotsOfItemsAndCyclesValidation.testCascadedValidationWithLotsOfItems        thrpt    15   7506.502 ±  89.779   ops/s
o.h.v.p.simple.SimpleSingleElementValidation.invalidObjectValidation                                                    thrpt    15   6647.196 ±  72.001  ops/ms
o.h.v.p.simple.SimpleSingleElementValidation.validObjectValidation                                                      thrpt    15  17785.621 ± 583.771  ops/ms

@marko-bekhta marko-bekhta force-pushed the fix/HV-2135-WIP-experiments branch from d936865 to e7bb1d1 Compare September 2, 2025 10:45
Copy link

sonarqubecloud bot commented Sep 2, 2025

@marko-bekhta marko-bekhta merged commit 3068d37 into hibernate:main Sep 2, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants